//
//  RechargeListCollectionViewCell.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/3/16.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "RechargeListCollectionViewCell.h"

@implementation RechargeListCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    ViewBorderRadius(self, 20, 1, MainColor2);
    self.coinName.adjustsFontSizeToFitWidth = YES;
    self.coinName.textColor = MainColor;
    self.coinName.text  = ASLocalizedString(@"500钻石 50元");
}

-(void)setModel:(payModel *)model
{
    self.coinName.text  = [NSString stringWithFormat:ASLocalizedString(@"%@钻石(送%@钻石) %@元  "),model.coin,model.give,model.money];
    self.coinName.font = DEFAULT_FONT(12);
}

-(void)setPaySelect:(BOOL)paySelect
{
    if(paySelect)
    {
        self.backgroundColor = MainColor2;
        self.coinName.textColor = [UIColor whiteColor];
    }
    else
    {
        self.backgroundColor = [UIColor clearColor];
        self.coinName.textColor = MainColor2;

    }
}

@end
